package edu.asu.sapa.ground.update;

public class Context {
	public int id;
	public float start;
	public float duration;
	public float finish;
	public float cost;
	
	public Context(int id) {
		this.id = id;
		this.start = this.duration = this.finish = Float.NaN;
		this.cost = 0f;
	}
	public Context(int id, float start, float duration, float finish) {
		this.id = id;
		this.start = start;
		this.duration = duration;
		this.finish = finish;
		this.cost = 0f;
	}
	public Context() {
		this.id = 0;
		this.start = this.duration = this.finish = Float.NaN;
		this.cost = 0f;
	}
	public void set(int id, float start, float duration, float finish, float cost) {
		this.id = id;
		this.start = start;
		this.duration = duration;
		this.finish = finish;
		this.cost = cost;
	}
	public void setTimes(float start, float duration, float finish) {
		this.start = start;
		this.duration = duration;
		this.finish = finish;
	}
}
